package com.jieshuibao.model.db;

import java.util.Date;

public class UserDealRecord {
    private String uuid;

    private String businessNo;

    private String userId;

    private Date createDate;

    private Double sum;//金额

    private Date paySucTime;//日期

    private String goodsType;//流水描述

    private String tradeType;//收入支出

    private String payType;//支付方式

    private String status;

    private String accountType;

    private String remark;

    private Double realPrice;
    
    private long time;

	public long getTime() {
    	Date paySucTime2 = getPaySucTime();
    	if(paySucTime2!=null){
    		return time==0?paySucTime2.getTime():time;
    	}
    	return time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Double getSum() {
        return sum;
    }

    public void setSum(Double sum) {
        this.sum = sum;
    }

    public Date getPaySucTime() {
        return paySucTime;
    }

    public void setPaySucTime(Date paySucTime) {
        this.paySucTime = paySucTime;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Double getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(Double realPrice) {
        this.realPrice = realPrice;
    }
}